
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>七牛云OSS - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>七牛云OSS - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">理论</div>
          <div class="card-question">七牛云对象存储（OSS）主要用于解决什么问题，并以哪些特点受到欢迎？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">理论</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">七牛云OSS旨在帮助开发者存储和管理大量图片、视频和其他数据。它以高可用性、高可靠性和低成本的特点受到了广泛欢迎。</div>
          </div>
          <div class="card-source">来源: 七牛云OSS简介</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">文档中提到了七牛云OSS的哪四个核心特性？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">文档中提到的四个核心特性是：全球加速、安全可靠、强大的API以及低成本。</div>
          </div>
          <div class="card-source">来源: 七牛云OSS简介</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">步骤</div>
          <div class="card-question">将图片上传到七牛云OSS需要哪五个主要步骤？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">步骤</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">1. 注册七牛云账号并创建存储空间；2. 获取访问密钥（Access Key和Secret Key）；3. 在项目中引入七牛云SDK；4. 实现图片上传逻辑；5. 处理上传结果，获取图片链接。</div>
          </div>
          <div class="card-source">来源: 上传图片的步骤</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">在授权应用访问七牛云OSS时，需要从控制台获取哪两种关键密钥？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">需要获取访问密钥，即Access Key和Secret Key。这些密钥用于授权应用访问七牛云OSS。</div>
          </div>
          <div class="card-source">来源: 上传图片的步骤</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">如何在Maven项目中添加七牛云Java SDK的依赖？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">在Maven项目的pom.xml文件中，添加dependency配置，其中groupId为`com.qiniu`，artifactId为`qiniu-java-sdk`，并指定版本（例如7.2.0）。</div>
          </div>
          <div class="card-source">来源: 七牛云SDK依赖</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">代码</div>
          <div class="card-question">在提供的Java示例代码中，需要用户替换为自己信息的三个关键变量是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">代码</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">需要用户替换的三个关键变量是：`ACCESS_KEY`（访问密钥）、`SECRET_KEY`（密钥）和`BUCKET_NAME`（存储空间名）。</div>
          </div>
          <div class="card-source">来源: 图片上传示例</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">代码</div>
          <div class="card-question">根据Java示例代码，`Auth`类的主要作用是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">代码</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">`Auth`类的主要作用是使用Access Key和Secret Key创建认证对象，用于生成上传凭证（uploadToken）。</div>
          </div>
          <div class="card-source">来源: 图片上传示例</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">代码</div>
          <div class="card-question">在七牛云Java SDK中，哪个类负责执行实际的上传操作，并通过哪个方法实现？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">代码</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">`UploadManager`类负责执行上传操作，通过其`put()`方法实现。</div>
          </div>
          <div class="card-source">来源: 图片上传示例</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">步骤</div>
          <div class="card-question">当图片成功上传到七牛云OSS后，应用通常会如何处理上传结果？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">步骤</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">根据上传结果，应用可以获取上传后的图片链接，然后用于在应用中展示或者存储到数据库中。</div>
          </div>
          <div class="card-source">来源: 上传图片的步骤</div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
